<%@ Page Language="C#" MasterPageFile="~/Site.master" Theme="Default" EnableTheming="true" 
    AutoEventWireup="true" CodeFile="ForgotPassword.aspx.cs" Inherits="ForgotPassword" 
        Title="Dr. Yurttas' Office Library &mdash; Forgotten Password" %>
<asp:Content ID="ContentAdmin" ContentPlaceHolderID="MasterContentAdmin" Runat="Server">
    <asp:LoginView ID="LoginViewAdmin" runat="server">
        <RoleGroups>
            <asp:RoleGroup Roles="admin">
                <ContentTemplate>
                    You are currently logged in, please log out first before using password recovery.
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </asp:LoginView>
</asp:Content>
<asp:Content ID="ContentUser" ContentPlaceHolderID="MasterContentUser" Runat="Server">
    <asp:LoginView ID="LoginViewUser" runat="server">
        <RoleGroups>
            <asp:RoleGroup Roles="user">
                <ContentTemplate>
                    You are currently logged in, please log out first before using password recovery.
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </asp:LoginView>
</asp:Content>
<asp:Content ID="ContentAnonymous" ContentPlaceHolderID="MasterContentAnonymous" Runat="Server">
    <asp:LoginView ID="LoginViewAnonymous" runat="server">
        <AnonymousTemplate>
            <asp:PasswordRecovery ID="PasswordRecovery1" runat="server" OnSendMailError="handleSendMailError">
                <SuccessTemplate>
                    <table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse">
                        <tr>
                            <td>
                                <table border="0" cellpadding="0">
                                    <tr>
                                        <td style="font-weight: bold; color: #5d7b9d">
                                            Your password has been sent to you.</td>
                                    </tr>
                                </table>
                                <asp:Button ID="returnToLoginButton" runat="server" CommandName="returnToLogin"
                                    OnClick="returnToLoginButton_Click" Text="Return to login"
                                    UseSubmitBehavior="False" ValidationGroup="ctl04$PasswordRecovery1" /></td>
                        </tr>
                    </table>
                </SuccessTemplate>
            </asp:PasswordRecovery>
        </AnonymousTemplate>
    </asp:LoginView>
</asp:Content>